Privately export css_provider_get_theme_dir
authorMatthias Clasen <mclasen@redhat.com>
Wed, 26 Jan 2011 16:17:34 +0000 (11:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 27 Jan 2011 05:32:07 +0000 (00:32 -0500)
gtk/Makefile.am
gtk/gtkcssprovider.c
gtk/gtkcssproviderprivate.h [new file with mode: 0644]

index b95a5d47e6131cec854e8fbe1cd6476218864cb7..09060ac87aaa1d00e3f89477e3eb7997b3b66891 100644 (file)
@@ -383,6 +383,7 @@ gtk_private_h_sources =             \
        gtkbuilderprivate.h     \
        gtkbuttonprivate.h      \
        gtkcellareaboxcontextprivate.h  \
+       gtkcssproviderprivate.h \
        gtkcustompaperunixdialog.h \
        gtkdndcursors.h         \
        gtkentryprivate.h       \
index 7853b05f1c30c98a9429ab876782105d56c67dcb..0e3b84b34c5cc39ab2cdcf3b6b2d0d24375093e6 100644 (file)
 #include <gdk-pixbuf/gdk-pixbuf.h>
 #include <cairo-gobject.h>
 
+#include "gtkcssproviderprivate.h"
+
 #include "gtkanimationdescription.h"
 #include "gtk9slice.h"
 #include "gtkgradient.h"
 #include "gtkthemingengine.h"
 #include "gtkstyleprovider.h"
-#include "gtkcssprovider.h"
 #include "gtkstylecontextprivate.h"
 #include "gtkprivate.h"
 
@@ -3936,8 +3937,8 @@ gtk_css_provider_get_default (void)
   return provider;
 }
 
-static gchar *
-css_provider_get_theme_dir (void)
+gchar *
+_gtk_css_provider_get_theme_dir (void)
 {
   const gchar *var;
   gchar *path;
@@ -4000,7 +4001,7 @@ gtk_css_provider_get_named (const gchar *name,
 
       if (!path)
         {
-          gchar *theme_dir = css_provider_get_theme_dir ();
+          gchar *theme_dir = _gtk_css_provider_get_theme_dir ();
           path = g_build_filename (theme_dir, name, subpath, NULL);
           g_free (theme_dir);
 
diff --git a/gtk/gtkcssproviderprivate.h b/gtk/gtkcssproviderprivate.h
new file mode 100644 (file)
index 0000000..02828e2
--- /dev/null
@@ -0,0 +1,31 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2011 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GTK_CSS_PROVIDER_PRIVATE_H__
+#define __GTK_CSS_PROVIDER_PRIVATE_H__
+
+#include "gtkcssprovider.h"
+
+G_BEGIN_DECLS
+
+gchar *_gtk_css_provider_get_theme_dir (void);
+
+G_END_DECLS
+
+#endif /* __GTK_CSS_PROVIDER_PRIVATE_H__ */